package models

import (
	"tuowei.com/cmd/migrate/migration/models"
	common "tuowei.com/common/models"
)

type SysAddress struct {
	Id              int    `json:"id" gorm:"primaryKey;autoIncrement;comment:"id"` // id
	StudentId       int    `json:"student_id" comment:"学员id"`                      // 学员id
	GoodsName       string `json:"goods_name" comment:"收获人姓名"`                     // 收货人姓名
	GoodsTel        string `json:"goods_tel" comment:"收获人电话"`                      // 收货人电话
	Region          string `json:"region" comment:"地区"`                            // 地区
	DetailedAddress string `json:"detailed_address" comment:"详细地址"`                // 详细地址
	DefaultAddress  int    `json:"default_address" comment:"是否默认"`                 // 是否默认
	common.ControlBy
	models.ModelTime
}

func (SysAddress) TableName() string {
	return "sys_address"
}

func (e *SysAddress) Generate() common.ActiveRecord {
	o := *e
	return &o
}

func (e *SysAddress) GetId() interface{} {
	return e.Id
}
